package com.ruoyi.doctor.mapper;

import com.ruoyi.doctor.domain.DoctorPatient;
import com.ruoyi.doctor.domain.DoctorPatientHistory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DoctorVisitsMapper {

    //查询患者和挂号列表
    List<DoctorPatient> queryPatient();

    //根据患者id查询数据
    DoctorPatient queryById(int patientId);

    //添加患者病例
    int addPatient(DoctorPatientHistory patientHistory);

    //根据患者id查询病例编码
    String queryByPatientId(int historyPatientId);

    //添加检查
    int addCheck(int patientId,int checkId);

    //添加药品
    int addDrug(int patientId,int drugId,int drugNum);

    //添加就诊状态
    int updateStatus(int patientId);

}
